﻿using Prism.Services.Dialogs;

namespace Base.ModuleBase.Dialogs.ViewModels
{
    public class InfoDialogViewModel : DialogViewModelBase
    {
        private string _message;
        /// <summary>
        /// 提示内容
        /// </summary>
        public string Message
        {
            get { return _message; }
            set { SetProperty(ref _message, value); }
        }

        public InfoDialogViewModel()
        {
            Title = "提示";
        }

        public override void OnDialogOpened(IDialogParameters parameters)
        {
            Message = parameters.GetValue<string>("message");
        }

        public override void OnDialogClosed()
        {
            
        }
    }
}
